package com.cnunicom.modules.tra.task;

import com.cnunicom.common.websocket.WebSocketServer;
import com.cnunicom.modules.job.task.ITask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author: dingziyuan
 * @Date: 2020/3/21/021 13:54
 * @Description: *
 */
@Component("socketTask")
public class SocketTask implements ITask {
    private Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public void run(String params){
        logger.debug("RecordTask定时任务正在执行，参数为：{}", params);
        WebSocketServer.sendAll("连接正常");
    }


}
